package com.gitee.secretopen.sso.db.pojo;

import cn.chenc.framework.mybatisplus.model.BaseConditionVO;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * @Author Xjt
 * @Date 2021/2/26 18:53
 * @Version 1.0
 */
/**
    * 用户表
    */
@Data
@TableName(value = "`user`")
public class User extends BaseConditionVO implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 密码
     */
    @TableField(value = "`password`")
    private String password;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 修改人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 是否可以登录sso后台管理(sso后台管理员,0:是,1否)
     */
    @TableField(value = "is_login_sso_admin")
    private Integer isLoginSsoAdmin;

    /**
     * 删除(0：正常，1：删除)
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_PASSWORD = "password";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_UPDATE_BY = "update_by";

    public static final String COL_IS_LOGIN_SSO_ADMIN = "is_login_sso_admin";

    public static final String COL_IS_DELETE = "is_delete";
}